package com.qf.day06.homework1;

public class Demo {
    public static void main(String[] args) {
        System.out.println("===============================");
        Hero hero = new Hero("亚索",120,50,30);
        System.out.println(hero);
        for (int i = 0; i < 5; i++) {
            System.out.print("第"+(i+1)+"次攻击,");
            hero.unarmedAttack();
        }
        System.out.println("===============================");
        Soldier soldier = new Soldier("盖伦",100,50,30,50);
        System.out.println(soldier);
        for (int i = 0; i < 5; i++) {
            System.out.print("第"+(i+1)+"次攻击,");
            soldier.heroicStrike();
        }
        System.out.println("===============================");
        Soldier soldier1 = new Soldier("瑞雯",160,50,30,100);
        System.out.println(soldier1);
        for (int i = 0; i < 8; i++) {
            System.out.print("第"+(i+1)+"次攻击,");
            soldier1.heroicStrike();
        }

    }
}
